﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Infinity.Types.Ranges
{
	public class DoubleRange : Range<double>
	{
		public DoubleRange(double start = 0, double? end = null, double by = 1)
			: base(start, end)
		{
			By = by;
		}

		public override double Next(double value)
		{
			return value + By;
		}

		public double By { get; protected set; }
	}
}